import Vue from 'vue'
import Router from 'vue-router'
import Find from './views/Find.vue' //主页
import search from './views/Search.vue'
import today_Recom from './views/todayRecom.vue'
/**************************/
import Listen from './views/Listen.vue' //随心听
import timeRadio from './views/timeRadio.vue'
import Music_list_all from './views/Music_list_all.vue'

/***************************************/
import Video_B from '@/views/Video_B.vue' //mv
import Mv_title from './components/Mv_title.vue'
import Mv_list_all from './views/Mv_list_all.vue'
import Mv_play from '@/views/Mv_play.vue'
import video_list from './components/video_list.vue'
/**********************************************/
import mymusic from './views/MyMusic.vue' //我的音乐
import playMusic from './views/PlayMusic.vue'

Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/',
      name: 'Find',
      component: Find
    },
    {
      path: '/Listen',
      name: 'Listen',
      component: Listen
    },
    {
      path: '/Music_list_all',
      name: 'Music_list_all',
      component: Music_list_all
    },
    {
      path: '/timeRadio/:songArr',
      name: 'timeRadio',
      component: timeRadio
    },
    {
      path: '/Video_B',
      name: 'Video_B',
      component: Video_B
    },
    {
      path: '/Mv_play/:videoId',
      name: 'Mv_play',
      component: Mv_play
    },
    {
      path: '/Mv_list_all',
      name: 'Mv_list_all',
      component: Mv_list_all
    },
    {
      path: '/today_Recom',
      name: 'today_Recom',
      component: today_Recom
    },
    {
      path: '/Mv_title',
      name: 'Mv_title',
      component: Mv_title
    },
    {
      path: '/video_list',
      name: 'video_list',
      component: video_list
    },

    {
      path: '/mymusic',
      name: 'mymusic',
      component: mymusic
    },

    
    {
      path: '/playMusic/:musicId',
      name: 'playMusic',
      component: playMusic,
      props:true
    },
    {
      path: '/search',
      name: 'search',
      component: search,
      
    },
   


  ]
})